<!DOCTYPE html>



  


<html class="theme-next pisces use-motion" lang="zh-Hans">
<head><meta name="generator" content="Hexo 3.9.0">
  <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="theme-color" content="#222">









<meta http-equiv="Cache-Control" content="no-transform">
<meta http-equiv="Cache-Control" content="no-siteapp">
















  
  
  <link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css">







<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css">

<link href="/css/main.css?v=5.1.4" rel="stylesheet" type="text/css">


  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png?v=5.1.4">


  <link rel="mask-icon" href="/images/logo.svg?v=5.1.4" color="#222">





  <meta name="keywords" content="Hexo, NexT">










<meta name="description" content="1&amp;#x3001;HTML &amp;#x6807;&amp;#x7B7E;&amp;lt;h1&amp;gt; &amp;#x8868;&amp;#x793A;&amp;#x4E00;&amp;#x4E2A;&amp;#x5927;&amp;#x6807;&amp;#x9898;; &amp;lt;p&amp;gt; &amp;#x8868;&amp;#x793A;&amp;#x4E00;&amp;#x4E2A;&amp;#x6BB5;&amp;#x843D;; &amp;lt;a&amp;gt; &amp;#x8868;&amp;#x793A;&amp;#x4E00;&amp;#x4E2A">
<meta property="og:type" content="article">
<meta property="og:title" content="HTML笔记">
<meta property="og:url" content="http://yoursite.com/2019/09/16/Html笔记/index.html">
<meta property="og:site_name" content="Silence潇湘夜雨">
<meta property="og:description" content="1&amp;#x3001;HTML &amp;#x6807;&amp;#x7B7E;&amp;lt;h1&amp;gt; &amp;#x8868;&amp;#x793A;&amp;#x4E00;&amp;#x4E2A;&amp;#x5927;&amp;#x6807;&amp;#x9898;; &amp;lt;p&amp;gt; &amp;#x8868;&amp;#x793A;&amp;#x4E00;&amp;#x4E2A;&amp;#x6BB5;&amp;#x843D;; &amp;lt;a&amp;gt; &amp;#x8868;&amp;#x793A;&amp;#x4E00;&amp;#x4E2A">
<meta property="og:locale" content="zh-Hans">
<meta property="og:updated_time" content="2019-09-16T06:20:36.213Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="HTML笔记">
<meta name="twitter:description" content="1&amp;#x3001;HTML &amp;#x6807;&amp;#x7B7E;&amp;lt;h1&amp;gt; &amp;#x8868;&amp;#x793A;&amp;#x4E00;&amp;#x4E2A;&amp;#x5927;&amp;#x6807;&amp;#x9898;; &amp;lt;p&amp;gt; &amp;#x8868;&amp;#x793A;&amp;#x4E00;&amp;#x4E2A;&amp;#x6BB5;&amp;#x843D;; &amp;lt;a&amp;gt; &amp;#x8868;&amp;#x793A;&amp;#x4E00;&amp;#x4E2A">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/',
    scheme: 'Pisces',
    version: '5.1.4',
    sidebar: {"position":"left","display":"post","offset":12,"b2t":true,"scrollpercent":true,"onmobile":false},
    fancybox: true,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    duoshuo: {
      userId: '0',
      author: '博主'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="http://yoursite.com/2019/09/16/Html笔记/">





  <title>HTML笔记 | Silence潇湘夜雨</title>
  








</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">

  
  
    
  

  <div class="container sidebar-position-left page-post-detail">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/" class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">Silence潇湘夜雨</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <p class="site-subtitle">Android开发一枚</p>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home //首页"></i> <br>
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-about">
          <a href="/about/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-user //关于"></i> <br>
            
            关于
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/tags/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-tags  //标签"></i> <br>
            
            标签
          </a>
        </li>
      
        
        <li class="menu-item menu-item-categories">
          <a href="/categories/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-th //分类"></i> <br>
            
            分类
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/archives/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive //归档"></i> <br>
            
            归档
          </a>
        </li>
      
        
        <li class="menu-item menu-item-schedule">
          <a href="/schedule/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-calendar //日程表"></i> <br>
            
            日程表
          </a>
        </li>
      
        
        <li class="menu-item menu-item-sitemap">
          <a href="/sitemap.xml" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-sitemap //站点地图"></i> <br>
            
            站点地图
          </a>
        </li>
      

      
    </ul>
  

  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="http://yoursite.com/2019/09/16/Html笔记/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="Silence潇湘夜雨">
      <meta itemprop="description" content>
      <meta itemprop="image" content="/images/avatar.gif">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Silence潇湘夜雨">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">HTML笔记</h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2019-09-16T00:00:00+08:00">
                2019-09-16
              </time>
            

            

            
          </span>

          
            <span class="post-category">
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">分类于</span>
              
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/笔记/" itemprop="url" rel="index">
                    <span itemprop="name">笔记</span>
                  </a>
                </span>

                
                
              
            </span>
          

          
            
          

          
          

          

          
            <div class="post-wordcount">
              
                
                <span class="post-meta-item-icon">
                  <i class="fa fa-file-word-o"></i>
                </span>
                
                  <span class="post-meta-item-text">字数统计&#58;</span>
                
                <span title="字数统计">
                  1.4k
                </span>
              

              
                <span class="post-meta-divider">|</span>
              

              
                <span class="post-meta-item-icon">
                  <i class="fa fa-clock-o"></i>
                </span>
                
                  <span class="post-meta-item-text">阅读时长 &asymp;</span>
                
                <span title="阅读时长">
                  7
                </span>
              
            </div>
          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        <h4 id="1&#x3001;HTML-&#x6807;&#x7B7E;"><a href="#1&#x3001;HTML-&#x6807;&#x7B7E;" class="headerlink" title="1&#x3001;HTML &#x6807;&#x7B7E;"></a>1&#x3001;HTML &#x6807;&#x7B7E;</h4><p><code>&lt;h1&gt;</code> &#x8868;&#x793A;&#x4E00;&#x4E2A;&#x5927;&#x6807;&#x9898;;</p>
<p><code>&lt;p&gt;</code> &#x8868;&#x793A;&#x4E00;&#x4E2A;&#x6BB5;&#x843D;;</p>
<p><code>&lt;a&gt;</code> &#x8868;&#x793A;&#x4E00;&#x4E2A;&#x8FDE;&#x63A5;</p>
<p><code>&lt;br/&gt;</code> &#x6807;&#x7B7E;: &#x8868;&#x793A;&#x6362;&#x884C;(&#x8FD9;&#x662F;&#x4E00;&#x4E2A;&#x6CA1;&#x6709;&#x5173;&#x95ED;&#x6807;&#x7B7E;&#x7684;&#x7A7A;&#x5143;&#x7D20;),&#x4F46;&#x662F;&#x6700;&#x597D;&#x4F7F;&#x7528;<code>&lt;br/&gt;</code></p>
<p><code>&lt;b&gt;</code> &#x6807;&#x7B7E;&#xFF1A;&#x8868;&#x793A;&#x7C97;&#x4F53;&#x6587;&#x672C;</p>
<p><code>&lt;em&gt;</code> &#x6807;&#x7B7E;&#xFF1A;&#x5B9A;&#x4E49;&#x7740;&#x91CD;&#x6587;&#x5B57;</p>
<p> <code>&lt;i&gt;</code> &#x6807;&#x7B7E;&#xFF1A;&#x8868;&#x793A;&#x659C;&#x4F53;</p>
<p> <code>&lt;small&gt;</code> &#x6807;&#x7B7E;&#xFF1A;&#x8868;&#x793A;&#x5C0F;&#x53F7;&#x5B57;</p>
<p> <code>&lt;strong&gt;</code> &#x6807;&#x7B7E;&#xFF1A;&#x8868;&#x793A;&#x52A0;&#x91CD;&#x8BED;&#x6C14;</p>
<p> <code>&lt;sub&gt;</code> &#x6807;&#x7B7E;&#xFF1A;&#x8868;&#x793A;&#x4E0B;&#x6807;&#x5B57;</p>
<p> <code>&lt;sup&gt;</code> &#x6807;&#x7B7E;&#xFF1A;&#x8868;&#x793A;&#x4E0A;&#x6807;&#x5B57;</p>
<p> <code>&lt;ins&gt;</code> &#x6807;&#x7B7E;&#xFF1A;&#x8868;&#x793A;&#x63D2;&#x5165;&#x5B57;</p>
<p> <code>&lt;del&gt;</code> &#x6807;&#x7B7E;&#xFF1A;&#x8868;&#x793A;&#x5220;&#x9664;&#x5B57;</p>
<p> <code>&lt;code&gt;</code> &#x6807;&#x7B7E;&#xFF1A;&#x8868;&#x793A;&#x8BA1;&#x7B97;&#x673A;&#x4EE3;&#x7801;</p>
<p> <code>&lt;kbd&gt;</code> &#x6807;&#x7B7E;&#xFF1A;&#x8868;&#x793A;&#x952E;&#x76D8;&#x7801;</p>
<p> <code>&lt;samp&gt;</code> &#x6807;&#x7B7E;&#xFF1A;&#x8868;&#x793A;&#x8BA1;&#x7B97;&#x673A;&#x4EE3;&#x7801;&#x6837;&#x672C;</p>
<p> <code>&lt;var&gt;</code> &#x6807;&#x7B7E;&#xFF1A;&#x5B9A;&#x4E49;&#x53D8;&#x91CF;</p>
<p><code>&lt;pre&gt;</code> &#x5B9A;&#x4E49;&#x9884;&#x8BBE;&#x6587;&#x672C;</p>
<p> <code>&lt;abbr&gt;</code> &#x6807;&#x7B7E;&#xFF1A;&#x8868;&#x793A;&#x7F29;&#x5199;</p>
<p><code>&lt;address&gt;</code> &#x6807;&#x7B7E;&#xFF1A;&#x8868;&#x793A;&#x5730;&#x5740;</p>
<p><code>&lt;bdo&gt;</code> &#x8868;&#x793A;&#x6587;&#x5B57;&#x65B9;&#x5411;</p>
<p><code>&lt;blockquote&gt;</code> &#x6807;&#x7B7E;&#xFF1A;&#x8868;&#x793A;&#x957F;&#x7684;&#x5F15;&#x7528;</p>
<p> <code>&lt;q&gt;</code> &#x6807;&#x7B7E;&#xFF1A;&#x8868;&#x793A;&#x77ED;&#x7684;&#x5F15;&#x7528;&#x8BED;</p>
<p> <code>&lt;cite&gt;</code> &#x6807;&#x7B7E;&#xFF1A;&#x5B9A;&#x4E49;&#x5F15;&#x7528;&#x3001;&#x5F15;&#x8BC1;</p>
<p> <code>&lt;dfn&gt;</code> &#x6807;&#x7B7E;&#xFF1A;&#x8868;&#x793A;&#x5B9A;&#x4E49;&#x4E00;&#x4E2A;&#x5B9A;&#x4E49;&#x9879;&#x76EE;</p>
<h4 id="2&#x3001;HTML-&#x5C5E;&#x6027;"><a href="#2&#x3001;HTML-&#x5C5E;&#x6027;" class="headerlink" title="2&#x3001;HTML &#x5C5E;&#x6027;"></a>2&#x3001;HTML &#x5C5E;&#x6027;</h4><blockquote>
<p><code>class</code>&#xFF1A; &#x8868;&#x793A;<code>html</code>&#x5143;&#x7D20;&#x5B9A;&#x4E49;&#x4E00;&#x4E2A;&#x6216;&#x591A;&#x4E2A;&#x7C7B;&#x540D;&#xFF08;classname&#xFF09;&#xFF08;&#x7C7B;&#x540D;&#x4ECE;&#x6837;&#x5F0F;&#x6587;&#x4EF6;&#x5F15;&#x5165;&#xFF09;&#xFF0C;class=&#x201C;xx&#x201D;&#xFF0C;&#x5F15;&#x53F7;&#x5185;&#x53EF;&#x4EE5;&#x586B;&#x5165;&#x591A;&#x4E2A;class&#x5C5E;&#x6027;</p>
</blockquote>
<blockquote>
<p><code>id</code>&#xFF1A;&#x8868;&#x793A;&#x5143;&#x7D20;&#x7684;&#x552F;&#x4E00;id &#xFF0C;&#x53EA;&#x80FD;&#x586B;&#x5199;&#x4E00;&#x4E2A;&#xFF0C;&#x591A;&#x4E2A;&#x65E0;&#x6548;</p>
</blockquote>
<blockquote>
<p><code>style</code>&#xFF1A;&#x8868;&#x793A;&#x89C4;&#x5B9A;&#x5143;&#x7D20;&#x7684;&#x884C;&#x5185;&#x6837;&#x5F0F;</p>
</blockquote>
<blockquote>
<p><code>title</code>&#xFF1A;&#x63CF;&#x8FF0;&#x5143;&#x7D20;&#x7684;&#x989D;&#x5916;&#x4FE1;&#x606F;&#xFF08;&#x4F5C;&#x4E3A;&#x5DE5;&#x5177;&#x6761;&#x4F7F;&#x7528;&#xFF09;</p>
</blockquote>
<h4 id="3&#x3001;HTML-&#x6807;&#x9898;"><a href="#3&#x3001;HTML-&#x6807;&#x9898;" class="headerlink" title="3&#x3001;HTML &#x6807;&#x9898;"></a>3&#x3001;HTML &#x6807;&#x9898;</h4><ul>
<li>1&#x3001;&#x6807;&#x9898;&#xFF1A; <code>&lt;h1&gt;</code>&#x5230;<code>&lt;h6&gt;</code>,&#x5176;&#x4E2D;<code>&lt;h1&gt;&lt;/h1&gt;</code>&#x4E3A;&#x6700;&#x5927;&#x7684;&#x6807;&#x9898;<code>&lt;h6&gt;&lt;/h6&gt;</code>&#x4E3A;&#x6700;&#x5C0F;&#x7684;&#x6807;&#x9898;</li>
<li>2&#x3001;&#x6C34;&#x5E73;&#x7EBF;&#xFF1A; <code>&lt;hr&gt;</code>&#x5728;&#x9875;&#x9762;&#x521B;&#x5EFA;&#x6C34;&#x5E73;&#x7EBF;</li>
<li>3&#x3001;&#x6CE8;&#x91CA; &#xFF1A;<!-- --> </li>
<li>4&#x3001;&#x94FE;&#x63A5;&#xFF1A;<code>&lt;a href=&quot;&#x94FE;&#x63A5;&#x5730;&#x5740;&quot;&gt;&#x5177;&#x4F53;&#x94FE;&#x63A5;&#xFF08;&#x6587;&#x672C;&#x3001;&#x56FE;&#x7247;&#x3001;&#x6570;&#x5B57;&#x7B49;&#x5185;&#x5BB9;&#xFF09;&lt;/a&gt;</code></li>
</ul>
<h4 id="4&#x3001;HTML-&#x5934;&#x90E8;"><a href="#4&#x3001;HTML-&#x5934;&#x90E8;" class="headerlink" title="4&#x3001;HTML &#x5934;&#x90E8;"></a>4&#x3001;HTML &#x5934;&#x90E8;</h4> <base>&#x5143;&#x7D20;&#xFF1A;&#x6807;&#x7B7E;&#x63CF;&#x8FF0;&#x4E86;&#x57FA;&#x672C;&#x7684;&#x94FE;&#x63A5;&#x5730;&#x5740;/&#x94FE;&#x63A5;&#x76EE;&#x6807;&#xFF0C;&#x8BE5;&#x6807;&#x7B7E;&#x4F5C;&#x4E3A;HTML&#x6587;&#x6863;&#x4E2D;&#x6240;&#x6709;&#x7684;&#x94FE;&#x63A5;&#x6807;&#x7B7E;&#x7684;&#x9ED8;&#x8BA4;&#x94FE;&#x63A5;

<p> <code>&lt;link&gt;</code>&#x5143;&#x7D20;&#xFF1A;&#x5B9A;&#x4E49;&#x4E86;&#x6587;&#x6863;&#x4E0E;&#x5916;&#x90E8;&#x8D44;&#x6E90;&#x4E4B;&#x95F4;&#x7684;&#x5173;&#x7CFB;&#xFF0C;&#x901A;&#x5E38;&#x7528;&#x4E8E;&#x8FDE;&#x63A5;&#x5230;&#x6837;&#x5F0F;&#x8868;</p>
<p><code>&lt;style&gt;</code>&#x5143;&#x7D20;&#xFF1A;&#x5B9A;&#x4E49;&#x4E86;html&#x6587;&#x6863;&#x7684;&#x6837;&#x5F0F;&#x6587;&#x4EF6;&#x5F15;&#x7528;&#x5730;&#x5740;&#xFF0C;&#x4E5F;&#x53EF;&#x4EE5;&#x76F4;&#x63A5;&#x6DFB;&#x52A0;&#x6837;&#x5F0F;&#x6765;&#x6E32;&#x67D3;html</p>
<p> <code>&lt;meta&gt;</code>&#x5143;&#x7D20;&#xFF1A;&#x63CF;&#x8FF0;&#x4E86;&#x4E00;&#x4E9B;&#x57FA;&#x672C;&#x7684;&#x5143;&#x6570;&#x636E;&#xFF0C;&#x901A;&#x5E38;&#x7528;&#x4E8E;&#x6307;&#x5B9A;&#x7F51;&#x9875;&#x7684;&#x63CF;&#x8FF0;&#xFF0C;&#x5173;&#x952E;&#x8BCD;&#xFF0C;&#x6587;&#x4EF6;&#x6700;&#x540E;&#x4FEE;&#x6539;&#x7684;&#x65F6;&#x95F4;&#xFF0C;&#x4F5C;&#x8005;&#x7B49;&#x5176;&#x4ED6;&#x6570;&#x636E;<code>&lt;meta&gt;</code>&#x4E00;&#x822C;&#x653E;&#x7F6E;&#x5728; <code>&lt;head&gt;</code>&#x533A;&#x57DF;</p>
  <meta name="keywords" content="HTML, CSS, XML, XHTML, JavaScript">
  




<p> <code>&lt;script&gt;</code> &#x5143;&#x7D20;&#xFF1A;&#x5B9A;&#x4E49;&#x811A;&#x672C;&#x6587;&#x4EF6;</p>
 <title>&#x5143;&#x7D20;&#xFF1A;&#x5B9A;&#x4E49;&#x6587;&#x6863;&#x7684;&#x6807;&#x9898;

<h4 id="5&#x3001;HTML-&#x6837;&#x5F0F;-CSS"><a href="#5&#x3001;HTML-&#x6837;&#x5F0F;-CSS" class="headerlink" title="5&#x3001;HTML &#x6837;&#x5F0F; CSS"></a>5&#x3001;HTML &#x6837;&#x5F0F; CSS</h4><ul>
<li>&#x5185;&#x8054;&#x6837;&#x5F0F;&#xFF1A;&#x5728;HTML&#x5143;&#x7D20;&#x4E2D;&#x4F7F;&#x7528;style&#x5C5E;&#x6027;</li>
</ul>
<figure class="highlight html"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="tag">&lt;<span class="name">p</span> <span class="attr">style</span>=<span class="string">&quot;color:blue;margin-left:20px;&quot;</span>&gt;</span>&#x8FD9;&#x662F;&#x4E00;&#x4E2A;&#x6BB5;&#x843D;<span class="tag">&lt;/<span class="name">p</span>&gt;</span></span><br></pre></td></tr></table></figure>

<ul>
<li>&#x5185;&#x90E8;&#x6837;&#x5F0F;&#x8868;&#xFF1A;&#x5728;HTML&#x6587;&#x6863;&#x5934;&#x90E8;&#x533A;&#x57DF;&#x4F7F;&#x7528;<style>元素来包含CSS</li>
</ul>
<p>​                 </p>
<figure class="highlight html"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line"><span class="tag">&lt;<span class="name">head</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;<span class="name">style</span> <span class="attr">type</span>=<span class="string">"text/css"</span>&gt;</span></span><br><span class="line">body &#123;background-color:yellow;&#125;</span><br><span class="line">p &#123;color:blue;&#125;</span><br><span class="line"><span class="tag">&lt;/<span class="name">style</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;/<span class="name">head</span>&gt;</span></span><br></pre></td></tr></table></figure>

<ul>
<li>外部引用：引用外部CSS文件</li>
</ul>
<p>​                </p>
<figure class="highlight html"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line"><span class="tag">&lt;<span class="name">head</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;<span class="name">link</span> <span class="attr">rel</span>=<span class="string">"stylesheet"</span> <span class="attr">type</span>=<span class="string">"text/css"</span> <span class="attr">href</span>=<span class="string">"mystyle.css"</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;/<span class="name">head</span>&gt;</span></span><br></pre></td></tr></table></figure>

<h4 id="6、HTML-图像"><a href="#6、HTML-图像" class="headerlink" title="6、HTML 图像"></a>6、HTML 图像</h4><p> <code>&lt;img&gt;</code> ：表示图像标签</p>
<p> <code>&lt;src&gt;</code> ：表示图像路径或者源文件</p>
<p> <code>&lt;alt&gt;</code> : 表示为图像设置一串可以预备的可替换的文本</p>
<p> <code>&lt;width&gt;</code> : 表示图像的宽</p>
<p> <code>&lt;height&gt;</code> :表示图像的高</p>
<p> <code>&lt;map&gt;</code> : 表示定义图像地图</p>
<p> <code>&lt;area&gt;</code> : 表示图像地图中的可点击区域</p>
<h4 id="7、HTML-表格-（table）"><a href="#7、HTML-表格-（table）" class="headerlink" title="7、HTML 表格 （table）"></a>7、HTML 表格 （table）</h4><p> <code>&lt;tr&gt;</code> : 表示表格中的行</p>
<p> <code>&lt;t&gt;</code> : 表示表格中的列</p>
<p> <code>&lt;th&gt;</code> : 表示表格中的表头</p>
<p> <code>&lt;caption&gt;</code> : 定义表格的标题</p>
<p> <code>&lt;colgroup&gt;</code> : 表示表格中的组</p>
<p> <code>&lt;col&gt;</code> ： 表示表格中列的属性</p>
<p> <code>&lt;thead&gt;</code> ： 表示表格的页眉</p>
<p>  <code>&lt;tbody&gt;</code> ： 表示表格的字体</p>
<p> <code>&lt;tfoot&gt;</code> : 表示表格的页脚</p>
<h4 id="8、HTML-列表"><a href="#8、HTML-列表" class="headerlink" title="8、HTML 列表"></a>8、HTML 列表</h4><ul>
<li>有序列表</li>
</ul>
<figure class="highlight html"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line"><span class="tag">&lt;<span class="name">ol</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;<span class="name">li</span>&gt;</span>Coffee<span class="tag">&lt;/<span class="name">li</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;<span class="name">li</span>&gt;</span>Milk<span class="tag">&lt;/<span class="name">li</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;/<span class="name">ol</span>&gt;</span></span><br></pre></td></tr></table></figure>

<ul>
<li><p>无序列表</p>
<figure class="highlight html"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line"><span class="tag">&lt;<span class="name">ul</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;<span class="name">li</span>&gt;</span>Coffee<span class="tag">&lt;/<span class="name">li</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;<span class="name">li</span>&gt;</span>Milk<span class="tag">&lt;/<span class="name">li</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;/<span class="name">ul</span>&gt;</span></span><br></pre></td></tr></table></figure>
</li>
<li><p>自定义列表</p>
<figure class="highlight html"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line"><span class="tag">&lt;<span class="name">dl</span>&gt;</span> : 自定义列表的开始标签</span><br><span class="line"></span><br><span class="line"><span class="tag">&lt;<span class="name">dt</span>&gt;</span> : 自定义列表项的开始标签</span><br><span class="line"></span><br><span class="line"><span class="tag">&lt;<span class="name">dd</span>&gt;</span> : 自定义列表项的具体描述</span><br></pre></td></tr></table></figure>
</li>
<li><p>列表标签</p>
<p>1、<code>&lt;ol&gt;</code> 有序列表</p>
<p> 2、<code>&lt;ul&gt;</code> 无序列表</p>
<p> 3、 <code>&lt;li&gt;</code> 列表项</p>
<p> 4、 <code>&lt;dl&gt;</code>自定义列表</p>
<p>  5、 <code>&lt;dt&gt;</code> 自定义列表的项</p>
<p>  6、 <code>&lt;dd&gt;</code> 自定义列表项的描述</p>
</li>
</ul>
<h4 id="9、HTML区块-div和span"><a href="#9、HTML区块-div和span" class="headerlink" title="9、HTML区块 div和span"></a>9、HTML区块 div和span</h4><ul>
<li>div 元素： 块级元素，可用于组合其他HTML元素的容器</li>
<li>span元素： 内联元素，可用作文本的容器</li>
</ul>
<h4 id="10、HTML-form表单"><a href="#10、HTML-form表单" class="headerlink" title="10、HTML form表单"></a>10、HTML form表单</h4><ul>
<li>1、 <code>&lt;form&gt;</code>  提供用户输入的表单</li>
<li>2、 <code>&lt;input&gt;</code> 输入框</li>
<li>3、 <code>&lt;textarea&gt;</code> 多行文本输入框</li>
<li>4、 <code>&lt;label&gt;</code> input元素的标签，一般为输入标题</li>
<li>5、 <code>&lt;fieldset&gt;</code> 一组相关的表单元素，并用外框包含起来</li>
<li>6、 <code>&lt;legend&gt;</code> fieldset元素的标题</li>
<li>7、 <code>&lt;select&gt;</code> 下来列表</li>
<li>8、 <code>&lt;optgroup&gt;</code> 选项组</li>
<li>9、<code>&lt;option&gt;</code> 下拉列表中的选项</li>
<li>10、 <code>&lt;button&gt;</code> 按钮</li>
<li>11、 <code>&lt;datalist&gt;</code> 指定一个预先定义的输入控件选项列表</li>
<li>12、 <code>&lt;keygen&gt;</code> 表单的密钥对生成器字段</li>
<li>13、 <code>&lt;output&gt;</code> 定义一个计算结果</li>
<li>14、 <code>&lt;CheckBox&gt;</code> 复选框</li>
<li>15、 <code>&lt;Radio Button&gt;</code> 单选框</li>
</ul>
</style></li></ul></title>
      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      

      
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/2019/09/16/Rxjva2笔记/" rel="next" title="RxJava 总结">
                <i class="fa fa-chevron-left"></i> RxJava 总结
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/2019/09/19/Android-获取手机的唯一ID（针对有Google服务的手机）/" rel="prev" title="Android 获取手机的唯一ID（针对有Google服务的手机）">
                Android 获取手机的唯一ID（针对有Google服务的手机） <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </div>
  
  
  
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          


          

  



        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap">
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview-wrap">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview-wrap sidebar-panel">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
            
              <p class="site-author-name" itemprop="name">Silence潇湘夜雨</p>
              <p class="site-description motion-element" itemprop="description">Android开发一枚</p>
          </div>

          <nav class="site-state motion-element">

            
              <div class="site-state-item site-state-posts">
              
                <a href="/archives/">
              
                  <span class="site-state-item-count">55</span>
                  <span class="site-state-item-name">日志</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-categories">
                <a href="/categories/index.html">
                  <span class="site-state-item-count">16</span>
                  <span class="site-state-item-name">分类</span>
                </a>
              </div>
            

            

          </nav>

          

          
            <div class="links-of-author motion-element">
                
                  <span class="links-of-author-item">
                    <a href="https://github.com/muyishuangfeng" target="_blank" title="GitHub">
                      
                        <i class="fa fa-fw fa-github"></i>GitHub</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="https://www.jianshu.com/u/1e2eec6f972c" target="_blank" title="简书">
                      
                        <i class="fa fa-fw fa-heartbeat"></i>简书</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="https://juejin.im/user/58df0abf61ff4b006b115e43" target="_blank" title="掘金">
                      
                        <i class="fa fa-fw fa-star"></i>掘金</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="https://twitter.com/yangke20792452" target="_blank" title="Twitter">
                      
                        <i class="fa fa-fw fa-twitter"></i>Twitter</a>
                  </span>
                
            </div>
          

          
          

          
          

          

        </div>
      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-4"><a class="nav-link" href="#1、HTML-标签"><span class="nav-number">1.</span> <span class="nav-text">1、HTML 标签</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#2、HTML-属性"><span class="nav-number">2.</span> <span class="nav-text">2、HTML 属性</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#3、HTML-标题"><span class="nav-number">3.</span> <span class="nav-text">3、HTML 标题</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#4、HTML-头部"><span class="nav-number">4.</span> <span class="nav-text">4、HTML 头部</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#5、HTML-样式-CSS"><span class="nav-number">5.</span> <span class="nav-text">5、HTML 样式 CSS</span></a></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      
        <div class="back-to-top">
          <i class="fa fa-arrow-up"></i>
          
            <span id="scrollpercent"><span>0</span>%</span>
          
        </div>
      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright">&copy; <span itemprop="copyrightYear">2020</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Silence潇湘夜雨</span>

  
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item-icon">
      <i class="fa fa-area-chart"></i>
    </span>
    
      <span class="post-meta-item-text">Site words total count&#58;</span>
    
    <span title="Site words total count">114.8k</span>
  
</div>


  <div class="powered-by">由 <a class="theme-link" target="_blank" href="https://hexo.io">Hexo</a> 强力驱动</div>



  <span class="post-meta-divider">|</span>



  <div class="theme-info">主题 &mdash; <a class="theme-link" target="_blank" href="https://github.com/iissnan/hexo-theme-next">NexT.Pisces</a> v5.1.4</div>




        







        
      </div>
    </footer>

    

    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  












  
  
    <script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>
  

  
  
    <script type="text/javascript" src="/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>
  

  
  
    <script type="text/javascript" src="/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
  


  


  <script type="text/javascript" src="/js/src/utils.js?v=5.1.4"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=5.1.4"></script>



  
  


  <script type="text/javascript" src="/js/src/affix.js?v=5.1.4"></script>

  <script type="text/javascript" src="/js/src/schemes/pisces.js?v=5.1.4"></script>



  
  <script type="text/javascript" src="/js/src/scrollspy.js?v=5.1.4"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=5.1.4"></script>



  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=5.1.4"></script>



  


  




	





  





  












  





  

  

  

  
  

  

  

  

  <!-- 页面点击小红心 -->
<script type="text/javascript" src="/js/src/love.js"></script>
<script src="/live2dw/lib/L2Dwidget.min.js?094cbace49a39548bed64abff5988b05"></script><script>L2Dwidget.init({"model":{"scale":1,"hHeadPos":0.5,"vHeadPos":0.618},"display":{"superSample":2,"width":150,"height":300,"position":"right","hOffset":0,"vOffset":-20},"mobile":{"show":false},"react":{"opacityDefault":0.5,"opacityOnHover":0.5},"log":false,"pluginJsPath":"lib/","pluginModelPath":"assets/","pluginRootPath":"live2dw/","tagMode":false});</script></body>
</html>
